package cn.stalk.compare;

import java.util.Objects;

/**
 * 当前项目私有的工具类
 */
public class PrivateUtils {

    public static boolean isNotBlank(String s) {
        return !isBlank(s);
    }

    public static boolean isBlank(String s) {
        return null == s || s.trim().length() == 0;
    }

    public static <E> boolean contains(E[] array, E e) {
        if (null == array) {
            return false;
        }
        for (E e1 : array) {
            if (Objects.equals(e1, e)) {
                return true;
            }
        }
        return false;
    }
}
